<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Scaling a 2D Element</title>
  <style>
    #the-box {
      border: thin solid #000;
      height: 250px;
      width: 250px;
      background-color: #ddd;
      text-align: center;
      vertical-align: middle;
      font-size: 150%;
      font-weight: bold;
    }

    #the-box:hover {
      transform: scale(1, 3);
    }
  </style>
</head>
<body>
  <div id="the-box">I am a box!<br />Watch me shrink!</div>
</body>
</html>
